<template>
  <el-table :data="userList" style="width: 100%" stripe border>
    <el-table-column prop="username" label="名字" align="center">
    </el-table-column>
    <el-table-column prop="email" label="邮箱" align="center">
    </el-table-column>
    <el-table-column prop="mobile" label="电话" align="center">
    </el-table-column>
    <el-table-column
      prop="role_name"
      label="超级管理员"
      align="center"
    >
    </el-table-column>
    <el-table-column prop="mg_state" label="状态" align="center">
      <template v-slot:default="niup">
        <el-switch
          v-model="niup.row.mg_state"
          active-color="#13ce66"
          inactive-color="#ff4949"
        >
        </el-switch>
      </template>
    </el-table-column>
    <el-table-column prop="" label="操作" align="center">
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  props: {
    userList: {
      type: Array,
    },
  },
};
</script>

<style>
</style>